import request from '@/utils/request';

export function queryAllByPager(params) {
  return request({
    url: 'rest/api/manager/quartz',
    method: 'get',
    params
  });
}

export function saveObject(data) {
  return request({
    url: 'rest/api/manager/quartz/save',
    method: 'post',
    data
  });
}

export function updateObject(data) {
  return request({
    url: 'rest/api/manager/quartz/update',
    method: 'post',
    data
  });
}

export function startObject(params) {
  return request({
    url: 'rest/api/manager/quartz/start',
    method: 'get',
    params
  });
}

export function stopObject(params) {
  return request({
    url: 'rest/api/manager/quartz/stop',
    method: 'get',
    params
  });
}

export function deleteObject(data) {
  return request({
    url: 'rest/api/manager/quartz/delete',
    method: 'post',
    data
  });
}
